package com.hqyj.springBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.springBoot.modules.account.entity.Role;
import com.hqyj.springBoot.modules.account.entity.User;
import com.hqyj.springBoot.modules.common.entity.ResultEntity;
import com.hqyj.springBoot.modules.common.entity.SearchBean;

import java.util.List;

public interface RoleService {
    ResultEntity<Role> addRole(Role role);

    ResultEntity<Role> updateRoleByRole(Role role);

    ResultEntity<Role> deleteRoleById(int id);

    Role selectRoleById(int id);

    List<Role> selectAllRole();

    PageInfo<Role> getRolesBySearchBean(SearchBean searchBean);

    List<Role> getRolesByUserId(int userId);

}
